package com.hytc.mymall.pager;

import android.content.Context;
import android.widget.TextView;

import com.hytc.mymall.base.BasePager;
import com.hytc.mymall.bean.HomeInfoBean;
import com.hytc.mymall.utils.BaseTools;


/**
 * Created by Administrator on 2016/12/1.
 */

public class pager1 extends BasePager
{
    private TextView tv_date;
    private TextView tv_djz;
    private TextView tv_ljjz;
    private TextView tv_sgjzrjz;

    public pager1(final Context context, final int n, final HomeInfoBean.HomeInfo homeInfo) {
        super(context, n, homeInfo);
    }

    @Override
    public void initData() {
        super.initData();
        final HomeInfoBean.Home4 home4 = this.homeinfo.home4;
        if (home4 == null) {
            return;
        }
        try {
            this.tv_djz.setText((CharSequence)(String.valueOf(BaseTools.formatMoney(home4.waitAmount)) + "\u5143"));
            this.tv_date.setText((CharSequence)home4.audittime);
            this.tv_sgjzrjz.setText((CharSequence)BaseTools.setTextMoneyUtil(home4.beannum));
            this.tv_ljjz.setText((CharSequence)(String.valueOf(BaseTools.formatMoney(home4.accumulateAmount)) + "\u5143"));
        }
        catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    @Override
    public void initView() {
        super.initView();
//        this.tv_djz = (TextView)this.rootView.findViewById(2131100428);
//        this.tv_date = (TextView)this.rootView.findViewById(2131100429);
//        this.tv_sgjzrjz = (TextView)this.rootView.findViewById(2131100430);
//        this.tv_ljjz = (TextView)this.rootView.findViewById(2131100431);
    }
}

